package com.czp.framework.model;

import java.io.Serializable;
import java.sql.Timestamp;

import com.czp.framework.util.DateUtils;
import com.czp.framework.util.HttpUtils;

public class BaseModelSupport implements Serializable {
	private static final long serialVersionUID = 3496373356277631276L;
	private String cudType = null;			//操作标识
	private Timestamp createDate = null;	//数据创建时间
	private Timestamp modifyDate = null;	//数据修改时间
	private String year = null;				//插入年份
	private String orgCodeLevel = null;		//组织机构级别
	private String optUserId = null;		//操作人编号
	private String optUserName = null;		//操作人名称
	private String visiable = null;			//逻辑删除1是删除0是未删除
	private int start = 0;					//开始索引
	private int limit = 15;					//限制索引
	private String sortName = null;			//排序列
	private String direction = null;		//排序方式
	private String langCode = null;
	private String checked = null;
	
	public BaseModelSupport() {
		//该构造函数根据实际情况使用，数据量过大该构造器可能会增加不必要的时间。
		createDate = DateUtils.getSysTimestamp();
		modifyDate = DateUtils.getSysTimestamp();
		year = DateUtils.getCurrentYear();
		optUserId = String.valueOf(HttpUtils.getSession("personId"));
		optUserName = String.valueOf(HttpUtils.getSession("name"));
	}

	/**
	 * 获取 cudType
	 * @return 返回 cudType
	 */
	public String getCudType() {
		return cudType;
	}

	/**
	 * 设置 cudType
	 * @param 对cudType进行赋值
	 */
	public void setCudType(String cudType) {
		this.cudType = cudType;
	}

	/**
	 * 获取 createDate
	 * @return 返回 createDate
	 */
	public Timestamp getCreateDate() {
		return createDate;
	}

	/**
	 * 设置 createDate
	 * @param 对createDate进行赋值
	 */
	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	/**
	 * 获取 modifyDate
	 * @return 返回 modifyDate
	 */
	public Timestamp getModifyDate() {
		return modifyDate;
	}

	/**
	 * 设置 modifyDate
	 * @param 对modifyDate进行赋值
	 */
	public void setModifyDate(Timestamp modifyDate) {
		this.modifyDate = modifyDate;
	}

	/**
	 * 获取 year
	 * @return 返回 year
	 */
	public String getYear() {
		return year;
	}

	/**
	 * 设置 year
	 * @param 对year进行赋值
	 */
	public void setYear(String year) {
		this.year = year;
	}

	/**
	 * 获取 orgCodeLevel
	 * @return 返回 orgCodeLevel
	 */
	public String getOrgCodeLevel() {
		return orgCodeLevel;
	}

	/**
	 * 设置 orgCodeLevel
	 * @param 对orgCodeLevel进行赋值
	 */
	public void setOrgCodeLevel(String orgCodeLevel) {
		this.orgCodeLevel = orgCodeLevel;
	}

	/**
	 * 获取 optUserId
	 * @return 返回 optUserId
	 */
	public String getOptUserId() {
		return optUserId;
	}

	/**
	 * 设置 optUserId
	 * @param 对optUserId进行赋值
	 */
	public void setOptUserId(String optUserId) {
		this.optUserId = optUserId;
	}

	/**
	 * 获取 optUserName
	 * @return 返回 optUserName
	 */
	public String getOptUserName() {
		return optUserName;
	}

	/**
	 * 设置 optUserName
	 * @param 对optUserName进行赋值
	 */
	public void setOptUserName(String optUserName) {
		this.optUserName = optUserName;
	}

	/**
	 * 获取 visiable
	 * @return 返回 visiable
	 */
	public String getVisiable() {
		return visiable;
	}

	/**
	 * 设置 visiable
	 * @param 对visiable进行赋值
	 */
	public void setVisiable(String visiable) {
		this.visiable = visiable;
	}

	/**
	 * 获取 start
	 * @return 返回 start
	 */
	public int getStart() {
		return start;
	}

	/**
	 * 设置 start
	 * @param 对start进行赋值
	 */
	public void setStart(int start) {
		this.start = start;
	}

	/**
	 * 获取 limit
	 * @return 返回 limit
	 */
	public int getLimit() {
		return limit;
	}

	/**
	 * 设置 limit
	 * @param 对limit进行赋值
	 */
	public void setLimit(int limit) {
		this.limit = limit;
	}

	/**
	 * 获取 sortName
	 * @return 返回 sortName
	 */
	public String getSortName() {
		return sortName;
	}

	/**
	 * 设置 sortName
	 * @param 对sortName进行赋值
	 */
	public void setSortName(String sortName) {
		this.sortName = sortName;
	}

	/**
	 * 获取 direction
	 * @return 返回 direction
	 */
	public String getDirection() {
		return direction;
	}

	/**
	 * 设置 direction
	 * @param 对direction进行赋值
	 */
	public void setDirection(String direction) {
		this.direction = direction;
	}

	/**
	 * 获取 langCode
	 * @return 返回 langCode
	 */
	public String getLangCode() {
		return langCode;
	}

	/**
	 * 设置 langCode
	 * @param 对langCode进行赋值
	 */
	public void setLangCode(String langCode) {
		this.langCode = langCode;
	}

	/**
	 * 获取 checked
	 * @return 返回 checked
	 */
	public String getChecked() {
		return checked;
	}

	/**
	 * 设置 checked
	 * @param 对checked进行赋值
	 */
	public void setChecked(String checked) {
		this.checked = checked;
	}

	/**
	 * 【重载方法】
	 * @return
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return "BaseModelSupport [checked=" + checked + ", createDate="
				+ createDate + ", cudType=" + cudType + ", direction="
				+ direction + ", langCode=" + langCode + ", limit=" + limit
				+ ", modifyDate=" + modifyDate + ", optUserId=" + optUserId
				+ ", optUserName=" + optUserName + ", orgCodeLevel="
				+ orgCodeLevel + ", sortName=" + sortName + ", start=" + start
				+ ", visiable=" + visiable + ", year=" + year + "]";
	}
	
	
}
